﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MoroMoro.Samples.ToDoList.Application;
using MoroMoro.Samples.ToDoList.Presentation.Presenters.Categories;
using MoroMoro.Samples.ToDoList.Domain.Categories;

namespace MoroMoro.Samples.ToDoList.Presentation.Views.Categories
{
    /// <summary>
    /// カテゴリ作成フォームです。
    /// </summary>
    public partial class CategoryCreationForm : CategoryBuildForm, ICategoryCreationView
    {
        /// <summary>
        /// <see cref="CategoryCreationForm"/> クラスの新しいインスタンスを初期化します。
        /// </summary>
        /// <param name="facade">ファサード。</param>
        /// <exception cref="System.ArgumentNullException">facade が null です。</exception>
        public CategoryCreationForm(ToDoListFacade facade)
        {
            InitializeComponent();

            _presenter = new CategoryCreationPresenter(this, facade);
        }


        /// <summary>
        /// プレゼンター。
        /// </summary>
        private readonly CategoryCreationPresenter _presenter;
    }
}
